<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2018/4/13  17:52
 */
namespace app\home\model;

use think\Model;

class Users extends Model
{
    protected $pk= 'id';
//    protected $table = 'users';

//    protected function initialize()
//    {
//        parent::intializa();
//
//    }

    public function score()
    {
        return $this->hasOne('score','u_id','id','left');
    }

}